package C.e.string;
public class SubstringDemo {
    public static void main(String[] args) {

        String str="www.4399.com";
        int start=2;
        int end=6;
        String name=str.substring(start,end);
        System.out.println(name);













       /* String str="www.tedu.cn";
        int start=4;//int start=str.indexOf(".")+1;
        int end=8;//int end=str.indexOf(".",start);
        String name=str.substring(start,end);
        System.out.println(name);
*/
    }
}
